using System;
using System.Collections;

namespace Com.CMS263.PO
{
	#region XxInfo

	/// <summary>
	/// XxInfo object for NHibernate mapped table 'XxInfo'.
	/// </summary>
	public class XxInfo
	{
		#region Member Variables
		
		protected int _id;
		protected int _userId;
		protected string _filePath;
		protected string _men;
		protected string _women;
		protected string _con;

		#endregion

		#region Constructors

		public XxInfo() { }

		public XxInfo( int userId, string filePath, string men, string women, string con )
		{
			this._userId = userId;
			this._filePath = filePath;
			this._men = men;
			this._women = women;
			this._con = con;
		}

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public  virtual int UserId
		{
			get { return _userId; }
			set { _userId = value; }
		}

		public  virtual string FilePath
		{
			get { return _filePath; }
			set
			{
				if ( value != null && value.Length > 500)
					throw new ArgumentOutOfRangeException("Invalid value for FilePath", value, value.ToString());
				_filePath = value;
			}
		}

		public  virtual string Men
		{
			get { return _men; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Men", value, value.ToString());
				_men = value;
			}
		}

		public  virtual string Women
		{
			get { return _women; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Women", value, value.ToString());
				_women = value;
			}
		}

		public  virtual string Con
		{
			get { return _con; }
			set
			{
				if ( value != null && value.Length > 4000)
					throw new ArgumentOutOfRangeException("Invalid value for Con", value, value.ToString());
				_con = value;
			}
		}

		

		#endregion
	}
	#endregion
}